package com.lhd._06interceptor.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lhd
 * @date 2024/4/28
 * @apiNote
 */
@RestController
public class UserController {

    //浏览器输入地址:http://localhost:8080/login
    @GetMapping("login")
    public String login(){
        return "登录成功";
    }

    //浏览器输入地址:http://localhost:8080/reg
    @GetMapping("reg")
    public String reg(){
        return "注册成功";
    }
}
